home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000078_icon-group-sender _Wed Jun 10 08:14:31 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id IAA15048
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Wed, 10 Jun 1998 08:14:31 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA08142; Wed, 10 Jun 1998 08:14:23 -0700
  7. From: gep2@computek.net
  8. Date: Wed, 10 Jun 1998 09:01:52 -0500
  9. Message-Id: <199806101401.JAA22815@axp.cmpu.net>
  10. Mime-Version: 1.0
  11. Content-Type: text/plain
  12. Content-Transfer-Encoding: 7bit
  13. Subject: Re: Directory access facilities
  14. To: icon-group@optima.CS.Arizona.EDU
  15. X-Mailer: SPRY Mail Version: 04.00.06.17
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 2143
  19.  
  20. > What's a recurse flag?  If it's just true/false, it's no use.  How do
  21. you control whether mount points are crossed?  Whether symbolic links
  22. (aliases in MacSpeak) are followed?  How cycles (possible in the
  23. presence of aliases) are to be handled?  Is the list depth first,
  24. breadth first, or alphabetic (ascii or by locale)?  What are the
  25. arguments of the filter and what can it request?  What about directories
  26. that are known to be directories but cannot be read?  What about
  27. symbolic links whose target has disappeared?
  28.  
  29. > People could at least take a serious look at ftw()/nftw().
  30. Other people have had three-quarter baked ideas; no need
  31. for us to half-bake our own.  nftw() exists because ftw(),
  32. which is richer than this proposal, just plain wasn't good enough.
  33.  
  34. ...and this kind of stuff is an excellent example of why so many programmers 
  35. just say "screw it!" and end up writing code that's appropriate to the OS they 
  36. have to support... for 95% of us, that's Win95/NT/DOS.  
  37.  
  38. Frankly, if I have to go through all these dumb gyrations to support (in theory) 
  39. some BS that I don't have to worry about anyhow, then it's easier to just solve 
  40. the problem in some other way.
  41.  
  42. Example:  I don't have to worry about aliases and file structure closed loops.  
  43. I don't care in the slightest if my program won't ever run on a Mac!  Sure, 
  44. there are other markets (like Unix) but I'll gladly give those niche markets to 
  45. other people, if I can have all the rest.  :-)
  46.  
  47. Hey, once you get the list, you can sort it (if you care) any way you like.  IF 
  48. that matters to you.
  49.  
  50. As for the filter, the ultimate filter is to process the list elements using 
  51. string scanning (I agree with the previous poster that it would be inappropriate 
  52. to use a reg-ex style filter expression here).
  53.  
  54. What I'm concerned about is getting the basic data.  Once that's done, I'm 
  55. confident I can do what I need to with it.  I don't so much like the system 
  56. trying to second-guess me and trying to provide me (in advance) with every 
  57. possible variant.
  58.  
  59. Gordon Peterson
  60. http://www.computek.net/public/gep2/
  61. Support the Anti-SPAM Amendment!  Join at http://www.cauce.org/
  62.  
  63.